home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 41.zip
/
BS1 part 41
/
Lattice C v5.02 d4.adf
/
examples
/
debugger
/
memory.cpr
< prev
next >
Wrap
Text File
|
1988-11-07
|
727b
|
22 lines
/* Display the Memory regions */
NULL = "00000000"x
execbase = import("00000004"x,4)
liboff = 322
nodebase = import(offset(execbase, liboff), 4)
do while(import(nodebase,4) ~= NULL)
attr = 'attr' c2x(import(offset(nodebase,14),2))
lower = 'lower' c2x(import(offset(nodebase,20),4))
upper = 'upper' c2x(import(offset(nodebase,24),4))
first = import(offset(nodebase,16),4)
free = 'free' c2d(import(offset(nodebase,28),4))||'.'
'd "'||c2x(nodebase) attr lower upper 'first' c2x(first) free||'"'
do while (first ~= NULL)
size = import(offset(first,4),4)
'd " ' c2x(first) ' size' c2x(size) '('||c2d(size)||'.)"'
first = import(first,4)
end
nodebase = import(nodebase,4)
end
exit(0)